<?php  

session_start();
require_once('connect.php');
require_once('includes/user.class.php');
require_once('includes/rooms.class.php');

$database = Database::getInstance();
$rooms = new Rooms();
$user = new User();

if(!$user->is_logged()) header('Location: index.php');

require_once('partials/header.php'); //wczytaj header i menu
?>


    <div class="container">

        <?php
        //wyświetl informację o logowaniu jeśli występuje
        if(isset($_SESSION['alert'])){
            echo '<div class="info">'.$_SESSION['alert'].'</div>';
        }
        ?>

        <div class="row">

            <div class="col-md-3">

                <?php require_once('partials/content-left-menu.php'); ?>

            </div>

            <div class="col-md-9">
			<h1>Kontakt z nami</h1>
			<p>Hogwarts School of Witchcraft and Wizardry</p>
			<p>Gryffindor (behind The Fat Lady)</p>
			

			</div>
		</div>		

    </div>
 
<?php
require_once('partials/footer.php');
?>
